home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / ContinueCase.au3 < prev    next >
Text File  |  2007-09-08  |  515b  |  25 lines

  1. $msg = ""
  2. $szName = InputBox(Default, "Please enter a word.", "", " M", Default, Default, Default, Default, 10)
  3. Switch @error
  4. Case 2
  5.     $msg = "Timeout "
  6.     ContinueCase
  7. Case 1; Continuing previous case
  8.     $msg &= "Cancellation"
  9. Case 0
  10.     Switch $szName
  11.     Case "a", "e", "i", "o", "u"
  12.         $msg = "Vowel"
  13.     Case "QP"
  14.         $msg = "Mathematics"
  15.     Case "Q" to "QZ"
  16.         $msg = "Science"
  17.     Case Else
  18.         $msg = "Others"
  19.     EndSwitch
  20. Case Else
  21.     $msg = "Something went horribly wrong."
  22. EndSwitch
  23.  
  24. MsgBox(0, Default, $msg)
  25.